<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePayMethodsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('pay_methods', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name', 20)->comment('支付方式名称');
            $table->string('icon', 50)->nullable()->comment('图标');
            $table->string('spell', 20)->comment('全拼');
            $table->boolean('is_show')->default(false)->comment('是否展示');
            $table->timestamps();
            $table->engine = 'MyISam';
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('pay_methods_tables');
    }
}
